package com.qpl.depression.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qpl.depression.entity.Employee;
import com.qpl.depression.repository.EmployeeRepository;
import com.qpl.depression.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author qpl
 * @since 2021-04-20
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeRepository, Employee> implements EmployeeService {

    @Autowired
    private EmployeeRepository employeeRepository;

    /**
     * 随机获取几条员工数据
     *
     * @return
     */
    @Override
    public List<Employee> getByRandom() {
        return employeeRepository.getByRandom();
    }
}
